package com.scujj.cs6.model.dto.user;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * 用户登录 DTO (邮箱登录)
 */
@Schema(name = "用户邮箱登录信息", description = "用户邮箱登录信息")
@Data
public class UserEmailLoginDTO {
    @Schema(description = "邮箱", example = "john.doe@example.com")
    @Email(message = "邮箱格式不正确")
    @NotBlank(message = "邮箱不能为空")
    private String email;

    @Schema(description = "密码", example = "P@ssw0rd")
    @NotBlank(message = "密码不能为空")
    @Size(min = 6, max = 20, message = "密码长度必须在 6-20 位之间")
    private String password;
}